package com.sugar.subscribe.course.module.business.controller.admin.coachplan.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import cn.idev.excel.annotation.*;
import com.sugar.subscribe.course.framework.excel.core.annotations.DictFormat;
import com.sugar.subscribe.course.framework.excel.core.convert.DictConvert;

import static com.sugar.subscribe.course.module.business.enums.DictTypeConstants.*;

@Schema(description = "管理后台 - 教练课程方案 Response VO")
@Data
@ExcelIgnoreUnannotated
public class CoachPlanRespVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "27319")
    @ExcelProperty("ID")
    private Long id;

    @Schema(description = "教练ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "3498")
    @ExcelProperty("教练ID")
    private Long coachId;

    @Schema(description = "教练姓名", requiredMode = Schema.RequiredMode.REQUIRED, example = "1771")
    @ExcelProperty("教练姓名")
    private String coachName;

    @Schema(description = "授权服务分类ID（服务一级分类ID）", requiredMode = Schema.RequiredMode.REQUIRED, example = "6156")
    @ExcelProperty("授权服务分类ID（服务一级分类ID）")
    private Long servicePId;

    @Schema(description = "授权服务分类（服务一级分类）", requiredMode = Schema.RequiredMode.REQUIRED, example = "6156")
    @ExcelProperty("授权服务分类名称")
    private String servicePName;

    @Schema(description = "授权服务分类ID（服务二级分类ID）", requiredMode = Schema.RequiredMode.REQUIRED, example = "16666")
    @ExcelProperty("授权服务分类ID（服务二级分类ID）")
    private Long serviceId;

    @Schema(description = "授权服务分类", requiredMode = Schema.RequiredMode.REQUIRED, example = "16666")
    @ExcelProperty("授权服务分类")
    private Long[] serviceIds;

    @Schema(description = "授权服务分类名称（服务二级分类）", requiredMode = Schema.RequiredMode.REQUIRED, example = "16666")
    @ExcelProperty("授权服务分类名称")
    private String serviceName;

    @Schema(description = "审核状态（字典：business_audit_status）", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "审核状态（字典：business_audit_status）", converter = DictConvert.class)
    @DictFormat(BUSINESS_AUDIT_STATUS)
    private Integer auditStatus;

    @Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("排序")
    private Integer sort;

    @Schema(description = "课程人数（字典：business_coach_service_people_count）", requiredMode = Schema.RequiredMode.REQUIRED, example = "1752")
    @ExcelProperty(value = "课程人数", converter = DictConvert.class)
    @DictFormat(BUSINESS_COACH_SERVICE_PEOPLE_COUNT)
    private String peopleCount;

    @Schema(description = "课程时间（字典：business_coach_service_time）", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "课程时间", converter = DictConvert.class)
    @DictFormat(BUSINESS_COACH_SERVICE_TIME)
    private String serviceTime;

    @Schema(description = "课程价格（单位分）", requiredMode = Schema.RequiredMode.REQUIRED, example = "14027")
    @ExcelProperty("课程价格（单位分）")
    private Integer price;
    /**
     * 审核拒绝原因
     */
    private String refuseCause;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
